
Array.prototype.myEvery = function (callback) {
    for (let i = 0;i < this.length; i++) {
        if (!callback(this[i],i,this)) {
            return false
        }
    }
    return true
}

const arr = [5, 7, 2, 3, 9]
console.log(arr.myEvery((number) => {
    return number % 2 === 1;
}))
